package pta.MOOC.ch02.ex09;

import java.util.Scanner;


public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        double totalMoney = in.nextDouble();
        int total = (int)(totalMoney*1000);
        int[] values = {10000, 5000, 1000, 500, 100, 20, 10};
        String[] names = {"十元", "五元", "一元", "五角", "一角", "贰分", "壹分"};
        String[] units = {"张", "张", "张", "个", "个", "个", "个"};
        for (int i = 0; i < values.length; i++) {
            int count = total / values[i];
            if(count > 0){
                System.out.println(count + " " + units[i] + names[i]);
                total %= values[i];
            }
        }
        in.close();
    }
}
